﻿using System.Collections.Generic;
using Budget.Model;
using Budget.Service;
using Microsoft.AspNetCore.Mvc;

namespace Budget.API.Controllers
{
    [ApiController]
    [Route("[controller]")]
    /// <summary>
    /// 材料库管理
    /// </summary>
    public class MaterialDepotController : ControllerBase
    {
        readonly MaterialDepotService materialDepotService = new MaterialDepotService();

        /// <summary>
        /// 获取材料库列表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<MaterialDepot> GetMaterialDepots()
        {
             return materialDepotService.GetMaterialDepots();
        }
    }
}